package com.platform.base.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.platform.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import com.platform.common.core.domain.BaseEntity;

/**
 * 阀门型号对象 valve_type
 * 
 * @author wangqi
 * @date 2020-09-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("valve_type")
public class ValveType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 型号id */
    @TableId(type = IdType.AUTO)
    private Long typeId;

    /** 阀门型号 */
    @NotBlank(message = "阀门型号不能为空")
    @Excel(name = "阀门型号")
    private String typeName;

    /** 阀门类型 */
    @Excel(name = "阀门类型")
    private String typeModel;

    /** 厂商id */
    @Excel(name = "厂商id")
    private Long factoryId;

    /** 删除标识0正常1删除 */
    private String delFlag;

    /** 厂商对象 */
    @TableField(exist = false)
    private BaseFactory factory;

    /** 阀门数量 */
    @TableField(exist = false)
    private int count;

}
